-- GENERATED SPELL FOR [Murloc Oracle] --


function spell0_517(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_517', 2500, 1)
end

function spell1_517(pUnit, Event) --@Quick Frost Ward,n/a--
pUnit:FullCastSpellOnTarget(4980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_517', 11500, 1)
end

function spell2_517(pUnit, Event) --@Renew,n/a--
pUnit:FullCastSpellOnTarget(6074,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_517', 15000, 1)
end

function Sorts_517(pUnit, Event)
local choix_sorts_517 = math.random(0, 2)
if choix_sorts_517 == 0 then
pUnit:RegisterEvent('spell0_517', 1, 1)
end
if choix_sorts_517 == 1 then
pUnit:RegisterEvent('spell1_517', 1, 1)
end
if choix_sorts_517 == 2 then
pUnit:RegisterEvent('spell2_517', 1, 1)
end
end

function mob517_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_517', math.random(1500, 3000), 1)
end

function mob517_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob517_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob517_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(517, 1, 'mob517_Action')
RegisterUnitEvent(517, 2, 'mob517_Leave')
RegisterUnitEvent(517, 3, 'mob517_Kill')
RegisterUnitEvent(517, 4, 'mob517_Die')
